// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from '../router'
import App from './APP'
import './assets/css/global.css'

Vue.prototype.axios = axios
/*配置请求的根路径* */
axios.defaults.baseURL='http://127.0.0.1:8888/api/private/v1/'
/*全局注册 变成全程可用的组件*/ 
Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
